module.exports = function (req, res, next) {
    var app = res.app;
    if (!app.locals.staticDomain) {
        if (req.headers.host.indexOf('localhost') > -1) {
            app.locals.staticDomain = '//127.0.0.1:8020/sinaapp'
        } else {
            app.locals.staticDomain = '//rekey.sinaapp.com'
        }
        app.locals.staticVersion = Math.floor(Date.now() / 1000 / 3600).toString(36);
    }
    next();
};